<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <table border="1" cellspacing="0" cellpadding="10" width="1000" align="center">
        <caption><a href="addPage"> 添加 </a> </caption>
        <tr>
            <th> id </th>
            <th> 头像 </th>
            <th> 姓名 </th>
            <th> 年龄 </th>
            <th> 地址 </th>
            <th> 创建时间 </th>
            <th> 更新时间 </th>
            <th> 操作 </th>
        </tr>
        @foreach($users as $user)
            <tr>
                <td>{{$user['id']}}</td>
                <td><img src="{{$user['headimg'][0]}}" width="40" height="40" ></td>
                <td>{{$user['username']}}</td>
                <td>{{$user['age']}}</td>
                <td>{{$user['adds']}}</td>
                <td>{{$user['created_at']}}</td>
                <td>{{$user['updated_at']}}</td>
                <td>
                    <a href="detail?id={{$user['id']}}"> 详细 </a>
                    <a href="addPage?id={{$user['id']}}"> 编辑 </a>
                    <a href="del?id={{$user['id']}}"> 删除 </a>
                </td>
            </tr>
        @endforeach
    </table>
</body>
</html>
